package com.hand.lwf24378.materials.exception;

/**
 * @author : WaveLee
 * @date : 2019/7/19 14:45
 * @description : 自定义异常类
 */
public class MaterialsException extends RuntimeException{

    private Integer code;

    public MaterialsException(EnumExceptions exceptionsEnum){
        super(exceptionsEnum.getMessage());
        this.code = exceptionsEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
